package util;

import geometry.Space;

import java.sql.Connection;
import java.text.DecimalFormat;
import java.text.NumberFormat;

public interface Constants {
	/**
	 * Path info
	 */
	static String pathPrefix = "/home/xiaohui/tims/";
	// static String pathPrefix = "D:/Research/parinet/";
	public static String queryFile = pathPrefix + "queries/query0.05_0.025.txt";
	public static String rawDataFile = pathPrefix + "dataset/old10k_800_15.txt";
	public static String brNetEdgeFile = pathPrefix + "network/bredgedata.csv";
	public static String sjNetEdgeFile = pathPrefix + "network/sjedgedata.csv";
	public static String DEST = "trajectory/test.dot";
	public static String timsRTreeFile = pathPrefix + "meta/timsRtree.txt";
	public static String timsBTreeFile = pathPrefix + "meta/timsb+tree.txt";
	public static String timsBlockFile = pathPrefix + "meta/timsb+block.txt";
	public static String rawTreeFileById = pathPrefix + "meta/indexidtree";
	public static String rawBlockFileById = pathPrefix + "meta/indexidblock";
	public static String brNetRTreeFile = pathPrefix + "meta/network_r_tree";
	public static String networkBTreeFileByEid = pathPrefix
			+ "meta/network_eidbtree_tree";
	public static String networkBlockFileByEid = pathPrefix
			+ "meta/network_eidbtree_block";
	public static String edgeGeomFile = pathPrefix + "network/edgegeom.csv";

	public static String CPRTreeFile = pathPrefix + "meta/cprTree";
	public static String nodesFile = pathPrefix + "network/nodesData.csv";

	public static String edgeIdFile = pathPrefix + "network/eids.csv";
	/**
	 * Variables
	 */
	public static String appear = "newpoint";
	public static String update = "update";
	public static String disappear = "disappearpoint";
	public static String intersection = "intersection";
	public static int rTreeCapacity = 1024;
	public static int defaultVectorSize = 10;
	public static int numJunctions = 50;
	public static int INVARIANTCULTUREID = 127;
	public static int nodesize = 128;
	public static int buffersize = 128;
	public static int numEdges = 7035;
	public static int numTimePoints = 7035;

	public static int oldminx = 281;
	public static int oldmaxx = 23854;
	public static int oldminy = 3935;
	public static int oldmaxy = 30851;

	// public static String
	public static String trajDBURL = "jdbc:mysql://localhost:3306/traj";
	public static String username = "root";
	public static String password = "123456";
	public static String tableName = "old10k_800_15";
	public static String loc2idTableName = "currloc2id";
	public static double tinyVal = 0.00000001;

	public static String rawDataTableName = "old10k_800_15";
	public static String sampleEid = "100001203";

	public static int insert = 1;
	public static int query = 2;
	/**
	 * Objects
	 */
	public static Space destSpace = new Space(0, 0, 30000, 30000);
	public static NumberFormat formatter = new DecimalFormat("#.#######");

}
